import { dateHandler, timeHandler } from './module/tools.js';

let name = document.querySelector('.name');
let welcome = document.querySelector('.welcome');
let qrcode = document.querySelector('.qrcode');
let save = document.querySelector('.save');
let appointInfo = JSON.parse(sessionStorage.getItem('appointment'));

window.onload = async function () {
    name.innerText = appointInfo.name;
    welcome.innerHTML = `欢迎您在${dateHandler(appointInfo[`sessions_time`])}${timeHandler(appointInfo[`sessions_time`])}参观广州国际花卉艺术展暨中国插花花艺展。`
    let image = new Image();
    image.src = appointInfo.qrcode;
    qrcode.appendChild(image);
}